package com.gdcp.System.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gdcp.System.entity.User;
import com.gdcp.System.mapper.UserMapper;
import com.gdcp.System.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author wrl
 * @since 2021-05-22
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
   private  UserMapper userMapper;
    @Override
    public List<User> splitpage(Integer current, Integer size) {

        return userMapper.splitpage(current,size);
    }
}
